import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const CONTENT: AppRouteRecordRaw = {
    path: '/content',
    name: 'content',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: '内容管理',
        requiresAuth: true,
        icon: 'icon-save',
        order: 1,
    },
    children: [
        {
            path: 'column',
            name: 'column',
            component: () => import('@/views/content/column/index.vue'),
            meta: {
                locale: '专栏',
                requiresAuth: true,
                roles: ['*'],
            },
        },
        {
            path: 'handlecolumn',
            name: 'handlecolumn',
            component: () => import('@/views/content/handlecolumn/index.vue'),
            meta: {
                requiresAuth: true,
                hideInMenu: true,
                roles: ['*'],
            },
        },
        {
            path: 'handleclass',
            name: 'handleclass',
            component: () => import('@/views/content/handleclass/index.vue'),
            meta: {
                requiresAuth: true,
                hideInMenu: true,
                roles: ['*'],
            },
        },
    ],
};

export default CONTENT;
